

require 'putty_parse.rb'

anal = "..\\..\\win32\\analyzer.exe"
#file = $*[0]
file = '$stdin'
#pgn_white_list = [127508]

i = 0
(eval file).each { |l|
	i+=1
	lp = parse_line(l)
	if lp && (defined? pgn_white_list || pgn_white_list.include?(lp["pgn"]))
		a = `echo #{i},#{lp["log_line"]} | #{anal} 2> tmp.txt`

		puts a
	end

}

